package com.asia5b.a5mall.middleware.model.shop

import com.asia5b.a5mall.middleware.model.base.BaseModel
import com.asia5b.a5mall.middleware.model.member.AddressModel
import java.io.Serializable

/**
 * Created by zhangyuncai on 2020/3/16.
 * 打包详情（预申请）(获取申请打包详细资料)
 */
class OrderParcelDetailModel : BaseModel() {
    val order_sn = ""

    val express_list: ArrayList<OrderParceExpressBean>? = null
    val address_list: ArrayList<AddressModel>? = null
    val ids: ArrayList<String>? = null
    val country_id = ""

    val traits = false //是否敏感货
}

class OrderParceExpressBean : BaseModel() {
    val goods_list: ArrayList<AbsGoodsModel>? = null
    val fee_list: ArrayList<OrderParcelFeeBean>? = null
    val express_sn: String? = null//快递号
}

class OrderParcelFeeBean : BaseModel() {
    val size: String? = null//体积
    val net_weight: String? = null//实际重量
    val volume_weight = ""//体积重
    val id = 0
}

/*
{
    "code": 200,
    "msg": "操作成功！",
    "data": {
        "traits": false,
        "address_list": [
            {
                "address_id": 92,
                "ship_name": "阿扒村",
                "ship_addr": "ABC Bulding",
                "ship_tel": "",
                "ship_province_id": 55387,
                "ship_city_id": 55689,
                "ship_county_id": 56417,
                "ship_town_id": 0,
                "ship_province": "泰国（Thailand）",
                "ship_city": "Bangkok",
                "ship_county": "Bangkok Noi",
                "ship_town": "",
                "warehouse_id": 11
            }
        ],
        "ids": [
            643
        ],
        "express_list": [
            {
                "express_sn": "ST03111028",
                "goods_list": [
                    {
                        "item_id": null,
                        "seller_id": 34,
                        "seller_name": "明成北",
                        "goods_id": 7177,
                        "sku_id": 22785,
                        "sku_sn": "840018-3",
                        "cat_id": 665,
                        "num": 1,
                        "goods_weight": 0.39,
                        "original_price": 12.1,
                        "original_price_list": {
                            "price_rmb": 12.1,
                            "price_myr": 7.16,
                            "price_thb": 51.86,
                            "price_idr": 24125.03,
                            "price_vnd": 39893.13,
                            "price_php": 86.8
                        },
                        "purchase_price": 12.1,
                        "purchase_price_list": {
                            "price_rmb": 12.1,
                            "price_myr": 7.16,
                            "price_thb": 51.86,
                            "price_idr": 24125.03,
                            "price_vnd": 39893.13,
                            "price_php": 86.8
                        },
                        "subtotal": 363,
                        "subtotal_list": {
                            "price_rmb": 363,
                            "price_myr": 214.82,
                            "price_thb": 1555.82,
                            "price_idr": 723750.85,
                            "price_vnd": 1196794.01,
                            "price_php": 2604.05
                        },
                        "name": "方便实用时尚好看便当盒",
                        "goods_image": "https:\/\/javashopa.oss-cn-shenzhen.aliyuncs.c
                        "spec_list": [
                            {
                                "spec_id": 2322,
                                "spec_value": "Mixed 2 Colours (without Partition)",
                                "seller_id": null,
                                "spec_name": "Colour",
                                "sku_id": null,
                                "big": "https:\/\/javashopa.oss-cn-shenzhen.aliyuncs.c
                                "small": "https:\/\/javashopa.oss-cn-shenzhen.aliyuncs
                                "thumbnail": "https:\/\/javashopa.oss-cn-shenzhen.aliy
                                "tiny": null,
                                "spec_type": 1,
                                "spec_image": "https:\/\/javashopa.oss-cn-shenzhen.ali
                                "spec_value_id": 9154
                            },
                            {
                                "spec_id": 2323,
                                "spec_value": "1 Pack = 30 pcs",
                                "seller_id": null,
                                "spec_name": "Pack",
                                "sku_id": null,
                                "big": null,
                                "small": null,
                                "thumbnail": null,
                                "tiny": null,
                                "spec_type": null,
                                "spec_image": "",
                                "spec_value_id": 9152
                            }
                        ],
                        "point": null,
                        "snapshot_id": 3499,
                        "service_status": "NOT_APPLY",
                        "single_list": [],
                        "group_list": [],
                        "goods_operate_allowable_vo": null,
                        "promotion_tags": [],
                        "purchase_num": 0,
                        "actual_pay_total": 363,
                        "actual_pay_total_list": {
                            "price_rmb": 363,
                            "price_myr": 214.82,
                            "price_thb": 1555.82,
                            "price_idr": 723750.85,
                            "price_vnd": 1196794.01,
                            "price_php": 2604.05
                        },
                        "units_number": 30,
                        "total_number": 30,
                        "sn": null,
                        "enable_quantity": 110271,
                        "traits": false,
                        "traits_name": "正常"
                    }
                ],
                "fee_list": [
                    {
                        "size": "11*11*111",
                        "mainordercode": null,
                        "id": 611,
                        "net_weight": "0.39",
                        "volume_weight": "2.24"
                    }
                ]
            }
        ],
        "order_sn": "20200316721434132928",
        "country_id": 12
    }
}
 */